{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('manage/index/index')}">{:config('web_site_title')}</a></li>
	<li><a href="{:url('seatsel/manage/index')}">{:config('proj_name')}</a></li>
	<li><a href="{:url('seatsel_manage/user/index')}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<!-- 搜索框 -->
<form method="get" action="{:url('seatsel_manage/user/index')}" class="form-inline mb20 J_ajaxForm">
	<div class="mb10">
		<div class="form-group">
			<label>id：</label>
			<input type="text" name="id" value="{$id}" class="form-control zz-length2" />
		</div>
		<div class="form-group">
			<label>openid：</label>
			<input type="text" name="openid" value="{$openid}" class="form-control zz-length4" />
		</div>
		<div class="form-group">
			<label>论坛uid：</label>
			<input type="text" name="pwuid" value="{$pwuid}" class="form-control zz-length2" />
		</div>
		<div class="form-group">
			<label>用户名：</label>
			<input type="text" name="username" value="{$username}" class="form-control zz-length2" />
		</div>
		<div class="form-group">
			<label>姓名：</label>
			<input type="text" name="realname" value="{$realname}" class="form-control zz-length2" />
		</div>
		<div class="form-group">
			<label>手机号：</label>
			<input type="text" name="mobile" value="{$mobile}" class="form-control zz-length2" />
		</div>
	</div>
	<button type="submit" data-action="{:url('seatsel_manage/user/index')}" class="btn btn-success btn-sm J_excel">搜索</button>
</form>
<hr>
<!-- 搜索框 -->

<div class="callout callout-danger">
	有openid的用户，说明是微信里面的，用的ID可以用来做核销用
</div>

<form class="">
	<table class="table table-striped table-bordered table-hover dataTables-table">
		<thead>
			<tr>
				<th width="76">ID</th>
				<td width="60">头像</td>
				<td width="90">论坛uid</td>
				<td>openid</td>
				<td>用户名</td>
				<td>姓名</td>
				<td>手机号</td>
				<td>代金券</td>
				<td width="120">操作</td>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo"}
			<tr>
				<td>{$vo['id']}</td>
				<td><img src="{$vo['avatar']}" width="60" /></td>
				<td>{$vo['pwuid']}</td>
				<td>{$vo['openid']}</td>
				<td>{$vo['username']}</td>
				<td>{$vo['realname']}</td>
				<td>{$vo['mobile']}</td>
				<td>
					<div>
						<a href="{:url('seatsel_manage/userVoucher/index', ['uid'=>$vo['id']])}" class="btn btn-warning btn-xs">用户代金券</a>
					</div>
					<div class="mt5">
						<a href="{:url('seatsel_manage/userVoucher/index', ['uid'=>$vo['id']])}" class="btn btn-warning btn-xs">发放代金券</a>
					</div>
				</td>
				<td>
					<div>
						<a href="{:url('seatsel_manage/user/doDelete', ['id'=>$vo['id']])}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="确认删除吗？">删除</a>
					</div>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
</form>
<div class="dataTables-pages">{$pageShow}</div>
{/block}